import React, {Component} from 'react';
import { setForm } from '../../../utils/setComponentUsed';

class Form extends Component {
    static comName = 'Form';

    constructor(props) {
        super(props);
        setForm(props.ncProps, props.areaId)
    }

    render() {
        const {createForm} = this.props.ncProps.form;
        return (
            <div className="nc-bill-form-area">
                {createForm(this.props.areaId, {
                    onAfterEvent: this.props.onAfterEvent,
                    isNoStandard: true
                })}
            </div>
        )
    }
}

export default Form
